// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#include "targetver.h"

//#define NOMINMAX
#define NOCRYPT             // Exclude rarely-used stuff from Windows headers
// Windows Header Files:
#include <windows.h>
#include <commctrl.h>
#include <gdiplus.h>
//#include <Olectl.h>
//#include <Unknwn.h>
#include <shobjidl.h>
//#include <dwmapi.h>
#include <wia.h>
#include <Sti.h>
#include <string>
#include <sstream>
#include <vector>
#include <set>
#include <cmath>
#include <map>
//#include <list>
#include <fstream>
//#include <memory>
#include "twain.h"

#undef min
#undef max
#include <algorithm>

#define TESSDLL_IMPORTS
#include "tessdll.h"

//#ifdef _DEBUG
//#include "Fluid_Studios_Memory_Manager/mmgr.h"
//#endif

#define TP_WINCLASS L"TWAINPUNCH"
#define TP_MUTEX L"{C8EBB852-AF1E-464C-B2A4-4F9965898A75}"

extern HINSTANCE tpInstance;

// Helper class for win32 window handling
struct MainWin {
		static void Show(bool show);
		static HWND hWnd;
};
